import { ajhttp } from '@/utils/http'
import { useTenantSystemStore } from '@/stores'
/**
 * 获取文章列表
 */
export const list = (data?: any) => {
    const tenantStore = useTenantSystemStore()
    if (!data) {
        data = {
            pid: tenantStore.state.pid
        }
    } else {
        data.pid = tenantStore.state.pid
    }
    return ajhttp({
        method: 'GET',
        url: `/system/article/list`,
        data
    })
}
